package io.renren.exception;

import io.renren.result.IResultCode;

public class CustomException extends RuntimeException {

    public IResultCode resultCode;

    public CustomException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public CustomException(String message){
        super(message);
    }

    public CustomException(String message, Throwable cause){
        super(message, cause);
    }

    public CustomException(Throwable cause){
        super(cause);
    }

    public IResultCode getResultCode() {
        return resultCode;
    }
}
